package com.spzx.cart.api.impl;

import com.spzx.cart.api.RemoteCartService;
import com.spzx.cart.api.domain.CartInfo;
import com.spzx.common.core.domain.R;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * TODO:该对象被创建条件：启动类能扫描到 或 基于SpringBoot自动装配机制触发
 * @author: atguigu
 * @create: 2025-02-26 09:36
 */
@Slf4j
@Component
public class RemoteCartServiceFallback implements RemoteCartService {
    @Override
    public R<List<CartInfo>> getCartCheckedList(String header) {
        log.error("远程调用购物车服务:{}失败", "getCartCheckedList");
        return null;
    }

    @Override
    public R<Boolean> updateCartPrice(Long userId, String header) {
        log.error("远程调用购物车服务:{}失败", "updateCartPrice");
        return null;
    }

    @Override
    public R<Boolean> deleteCartCheckedList(Long userId, String header) {
        log.error("远程调用购物车服务:{}失败", "deleteCartCheckedList");
        return null;
    }
}
